// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 

package com.appwoo.txtws.util;

import android.app.Activity;
import android.util.DisplayMetrics;
import android.view.Display;
import android.view.WindowManager;

public class Configure
{

	public static int countPages = 0;
	public static int curentPage = 0;
	public static boolean isChangingPage = false;
	public static boolean isDelDark = false;
	public static boolean isMove = false;
	public static int removeItem = 0;
	public static float screenDensity = 0.0F;
	public static int screenHeight = 0;
	public static int screenWidth = 0;

	public Configure()
	{
	}

	public static void init(Activity activity)
	{
		if (screenDensity == 0.0F || screenWidth == 0 || screenHeight == 0)
		{
			DisplayMetrics displaymetrics = new DisplayMetrics();
			activity.getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);
			screenDensity = displaymetrics.density;
			screenHeight = displaymetrics.heightPixels;
			screenWidth = displaymetrics.widthPixels;
		}
		curentPage = 0;
		countPages = 0;
	}

	public int[] ret(int ai[])
	{
		int i = -1 + ai.length;
_L2:
		if (i < 0)
			return ai;
		int j = 0;
		do
		{
label0:
			{
				if (j < i)
					break label0;
				i--;
			}
			if (true)
				continue;
			if (ai[j] > ai[j + 1])
			{
				int k = ai[j];
				ai[j] = ai[j + 1];
				ai[j + 1] = k;
			}
			j++;
		} while (true);
		if (true) goto _L2; else goto _L1
_L1:
	}

}
